import { PROJECT_PREFIX } from '../../types/constants'

export function styles(className: string): string {
  return `
.${className} {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  
  .scroll-button {
    all: unset;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--${PROJECT_PREFIX}-theme-scroll-button-bg, rgba(0, 0, 0, 0.7));
    color: white;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.3s ease;

    &:hover {
      opacity: 1;
      background: var(--${PROJECT_PREFIX}-theme-scroll-button-bg-hover, rgba(0, 0, 0, 0.9));
      transform: scale(1.1);
      
      &.rotated {
        transform: rotate(180deg) scale(1.1);
      }
    }
    
    &.rotated {
      transform: rotate(180deg);
    }
  }
}
`
}
